package com.seaside.park.bean;

import com.seaside.common.bean.Result;

public class ParkPlaceResult {
    private int code;
    private Data data;
    private String msg;
    private boolean sucess;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public Data getData() {
        return data;
    }

    public void setData(Data data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public boolean isSucess() {
        return sucess;
    }

    public void setSucess(boolean success) {
        this.sucess = success;
    }

    public static Result Error(String message) {
        Result result = new Result();
        result.setMsg(message);
        result.setSucess(false);
        return result;
    }

    public static class Data {
        private String parkNo;

        public String getParkNo() {
            return parkNo;
        }

        public void setParkNo(String parkNo) {
            this.parkNo = parkNo;
        }
    }
}
